package com.example.config;

import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;
import org.springframework.context.annotation.PropertySource;

@Configuration
@ComponentScan({"com.example.service", "com.example.serviceImpl"})  //加载bean
@PropertySource("classpath:jdbc.properties")         //加载jdbc配置
@Import({JdbcConfig.class, MybatisConfig.class})  //加载配置类
public class SpringConfig {
}
